package com.iven.xie.redis.beans;

import lombok.Data;

import java.text.MessageFormat;

/**
 * @author iven.xie
 */
@Data
public class CacheKey {

    private String key;
    private String[] params;

    public String getFinalKey() {
        return MessageFormat.format(key, params);
    }

    public CacheKey(String key, String... params) {
        this.key = key;
        this.params = params;
    }
}
